package com.ojsystem.backendserviceclient.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ojsystem.backendmodel.model.dto.question.QuestionQueryRequest;
import com.ojsystem.backendmodel.model.entity.Question;
import com.ojsystem.backendmodel.model.entity.QuestionSubmit;
import com.ojsystem.backendmodel.model.vo.QuestionVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;


import javax.servlet.http.HttpServletRequest;

/**
 * @author Administrator
 * @description 针对表【question(题目)】的数据库操作Service
 * @createDate 2025-07-04 15:07:18
 */
@FeignClient(name = "backend-question-service", path = "/api/question/inner")
public interface QuestionFeignClient   {


    @GetMapping("/get/id")
    Question getQuestionById(@RequestParam("questionId") long questionId);


    @GetMapping("/question_submit/get/id")
    QuestionSubmit getQuestionSubmitById(@RequestParam("questionSubmitId") long questionSubmitId);


    @PostMapping("/question_submit/update")
    boolean updateQuestionSubmitById(@RequestBody QuestionSubmit questionSubmit);


}
